(global.webpackJsonp = global.webpackJsonp || []).push([ [ "subpages/pages/cancel-order/cancel-order" ], {
    2937: function(t, e, c) {
        c.r(e);
        var n = c("e1c6"), i = c("7c0d");
        for (var o in i) "default" !== o && function(t) {
            c.d(e, t, function() {
                return i[t];
            });
        }(o);
        c("b559");
        var a = c("f0c5"), s = Object(a.a)(i.default, n.b, n.c, !1, null, "0f13fee8", null, !1, n.a, void 0);
        e.default = s.exports;
    },
    5924: function(t, e, c) {
        (function(t) {
            Object.defineProperty(e, "__esModule", {
                value: !0
            }), e.default = void 0;
            var c = {
                components: {},
                data: function() {
                    return {
                        id: "",
                        logisticID: "",
                        name: "",
                        phone: "",
                        selectItem: "",
                        content: "",
                        checkList: [ {
                            id: 1,
                            checked: !1,
                            text: "没人接单，小哥联系不上，超时未取件"
                        }, {
                            id: 2,
                            checked: !1,
                            text: "信息错了，需要修改，重新下单"
                        }, {
                            id: 3,
                            checked: !1,
                            text: "不寄了，计划有变，改时间"
                        }, {
                            id: 4,
                            checked: !1,
                            text: "疫情管控，快递停运，放假"
                        }, {
                            id: 5,
                            checked: !1,
                            text: "重复下单了"
                        }, {
                            id: 6,
                            checked: !1,
                            text: "超出取件范围，不能来取件，无法送达"
                        }, {
                            id: 7,
                            checked: !1,
                            text: "物品不能寄，包装不符合要求"
                        }, {
                            id: 8,
                            checked: !1,
                            text: "下单失败"
                        }, {
                            id: 9,
                            checked: !1,
                            text: "非本人意愿被取消，被作废"
                        }, {
                            id: 10,
                            checked: !1,
                            text: "其他"
                        } ]
                    };
                },
                onLoad: function(t) {
                    this.id = t.id, this.logisticID = t.logisticID, this.name = t.name, this.phone = t.phone;
                },
                methods: {
                    toTickets: function() {
                        this.$common.navigateTo("/subpages/pages/tickets/tickets?logisticID=".concat(this.logisticID, "&name=").concat(this.name, "&phone=").concat(this.phone));
                    },
                    submit: function() {
                        this.cancel(this.id);
                    },
                    navback: function() {
                        t.navigateBack();
                    },
                    checkboxChange: function(t) {
                        var e = t.detail.value;
                        this.selectItem = e;
                    },
                    cancel_api: function(e, c) {
                        var n = this;
                        this.$api.orderCancelApi({
                            recipients_id: e,
                            reason: c
                        }, function(e) {
                            "1" == e.code ? n.$common.successToShow(e.msg, function() {
                                t.navigateBack();
                            }) : n.$common.errorToShow(e.msg);
                        });
                    },
                    cancel: function(t) {
                        var e = this.checkList[this.selectItem - 1].text, c = this.checkList[this.selectItem - 1].id;
                        if (10 == this.selectItem) {
                            if (!this.content) return void this.$common.errorToShow("请输入其他的理由");
                            e = this.content, c = 10;
                        }
                        e = c + ":" + e, this.cancel_api(t, e);
                    }
                }
            };
            e.default = c;
        }).call(this, c("543d").default);
    },
    7848: function(t, e, c) {},
    "7c0d": function(t, e, c) {
        c.r(e);
        var n = c("5924"), i = c.n(n);
        for (var o in n) "default" !== o && function(t) {
            c.d(e, t, function() {
                return n[t];
            });
        }(o);
        e.default = i.a;
    },
    b559: function(t, e, c) {
        var n = c("7848");
        c.n(n).a;
    },
    cb50: function(t, e, c) {
        (function(t) {
            c("98af"), n(c("66fd"));
            var e = n(c("2937"));
            function n(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = c, t(e.default);
        }).call(this, c("543d").createPage);
    },
    e1c6: function(t, e, c) {
        c.d(e, "b", function() {
            return n;
        }), c.d(e, "c", function() {
            return i;
        }), c.d(e, "a", function() {});
        var n = function() {
            this.$createElement, this._self._c;
        }, i = [];
    }
}, [ [ "cb50", "common/runtime", "common/vendor" ] ] ]);